package com.springboot.hotel.controller.menu;

import com.springboot.hotel.service.SysMenuService;
import com.springboot.hotel.xencryption.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysmenu")
public class SysMenuController {

    @Autowired
    private SysMenuService service;


    @GetMapping("/init")
    public R init(){
        return R.ok("success", service.getAllMenusByTree2());
    }

    @GetMapping("/list")
    public R  list() {
        return R.ok("success");
    }


}
